package com.study.dao;

import java.util.List;

import com.google.inject.persist.Transactional;
import com.study.domain.DocuDetail;

public class DocuDetailDao extends BaseDao {
	@Transactional
	public void insert(DocuDetail docuDetail)
	{
		em().persist(docuDetail);
	}
	
	public List<DocuDetail> findAll() {
		return em().createQuery("from DocuDetail").getResultList();
	}
}
